<@admin.header title="测评师管理">
<script type="text/javascript">
    $(document).ready(function(){
    	App.ns('Evaluators');
		
		
		Evaluators.form = new App.common.Form({
			base:'${base}/car/evaluators'
		});
		
		
		Evaluators.search = function(){
			$('#searchForm').submit();
		}
		Evaluators.delAll = function(){
			var ids = Evaluators.form.getCheckboxValues();
			Evaluators.form.deleteRecord(ids);
		}
		
		Evaluators.del = function(ids){
			Evaluators.form.deleteRecord(ids,null, function(){
			$("#tr_"+ids).hide();
				App.toast.success("操作成功");
		});
		}
    });
</script>
<style>
	.red {color:#f11;font-weight:bold;}
	.line {line-height:100%;text-indent:0px;word-break:break-all;}
</style>
</@admin.header>
    <body>
        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li>
                    <a href="#">首页</a>
                </li>
                <li>
                    <a href="list.do">测评师管理</a>
                </li>
                <li>
                    <a href="#">测评师管理列表</a>
                </li>
            </ul>
        </div>
        <div class="rightinfo">
        	<!--默认查询表单-->
        <form action="list.do" method="post" id="searchForm">
            <input type="hidden" name="pageNo" value="1"/>
            <div class="tools">
                <ul class="toolbar">
                    <li class="click">
                        <a href="add.do"><span><img src="${base}/resources/images/t01.png" /></span>添加</a>
                    </li>
                    <li>
                        <a href="javascript:Evaluators.delAll();"><span><img src="${base}/resources/images/t03.png" /></span>删除</a>
                    </li>
                    <li style="padding:0 0">
                        <span style="margin:0px 5px">关键字</span>
	                	<input name="keyword" type="text" class="dfinput" style="width:160px;" value="${keyword!''}" />&nbsp;
                    </li>
                    <li>
						<a href="javascript:Evaluators.search()"><span><img src="${base}/resources/images/search24.png" /></span>查找</a>
                    </li>
                </ul>
            </div>
			</form>
            <table class="tablelist">
                <thead>
                    <tr>
                        <th width="30"><input name="" type="checkbox" onclick="evaluators.form.checkToggle('ids',this);"/></th>
						<th width="40">
                       		 编号<i class="sort hide"><img src="${base}/resources/images/px.gif" /></i>
	                    </th>
	                    <th width="90">测评师名称</th>
						<th width="160">头衔</th>
	                    <th>简介</th>
	                    <th width="100">头像地址</th>
	                    <th width="90">编辑时间</th>
	                    <th width="80">操作</th>
                    </tr>
                </thead>
                <tbody>
                	
              	<#if page??>
					<#list page.list as d>
                    <tr id="tr_${d.id}">
                        <td>
                            <input name="ids" type="checkbox" value="${d.id}" />
                        </td>
						<td>${d_index+1!''}</td>
						<td>
							<div class="line">
						<#if keyword?? && keyword != "">
						 ${d.name?replace(keyword,"<span class='red'>"+keyword+"</span>")}
						<#else>
						${d.name!''}
						</#if>
							</div>
						</td>
	                    <td>${d.title!''}</td>
	                    <td>${d.information!''}</td>            
	                    <td>${d.header!''}</td>
	                    <td><#setting datetime_format="yyyy-MM-dd"/> ${d.postDate!''}</td>
                        <td align="middle">
                            <a href="edit.do?id=${d.id}" class="tablelink">修改</a>
							|
                        	<a href="javascript:Evaluators.del('${d.id}')" class="tablelink">删除</a>
                        </td>
                    </tr>
					</#list>
					</#if>
                </tbody>
            </table>
			<@common.pagination />
        </div>
    </body>
</html>